///**
// * Created by admin on 2018/1/30.
// */
//layui.config({
//    base : "js/"
//}).use(['form','layer','jquery','layedit','laydate'],function(){
//    var form = layui.form,
//        layer = parent.layer === undefined ? layui.layer : parent.layer,
//        laypage = layui.laypage,
//        layedit = layui.layedit,
//        laydate = layui.laydate,
//        $ = layui.jquery;
//
//    //创建一个编辑器
//    var editIndex = layedit.build('accident_content');
//    var addAccidentArray = [],addAccident;
////    form.on("submit(addAccident)",function(data){
////    	debugger;
////        //是否添加过信息
////        if(window.sessionStorage.getItem("addAccident")){
////            addAccidentArray = JSON.parse(window.sessionStorage.getItem("addAccident"));
////        }
////
////        addAccident = '{"accidentId":"'+$(".accidentId").val()+'",';  //事故编号
////        addAccident += '"accidentName":"'+$(".accidentName").val()+'",'; //事故名称
////        addAccident += '"accidentKind":"'+$(".accidentKind option:selected").text()+'",'; //事故类型
////        addAccident += '"accidentTime":"'+$(".accidentTime").val()+'"}'; //事故时间
////        addAccidentArray.unshift(JSON.parse(addAccident));
////        window.sessionStorage.setItem("addAccident",JSON.stringify(addAccidentArray));
////        //弹出loading
////        var index = top.layer.msg('数据提交中，请稍候',{icon: 16,time:false,shade:0.8});
////        setTimeout(function(){
////            top.layer.close(index);
////            top.layer.msg("信息添加成功！");
////            layer.closeAll("iframe");
////            //刷新父页面
////            parent.location.reload();
////        },2000);
////        return false;
////    })
//
//})